package com.wlstock.funi.model;

import org.json.JSONObject;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable
public class BaseStockInfo extends BaseModel{
	
	@DatabaseField (id = true)
	private String stockNo;
	@DatabaseField
	private String stockName;
	@DatabaseField
	private String market;
	
	public BaseStockInfo(){}

	public BaseStockInfo(JSONObject obj){
		this.stockNo = obj.optString("stockcode");
		this.stockName = obj.optString("C_name");
		this.market = obj.optString("market");
	}
	
	public String getStockNo() {
		return stockNo;
	}

	public void setStockNo(String stockNo) {
		this.stockNo = stockNo;
	}

	public String getStockName() {
		return stockName;
	}

	public void setStockName(String stockName) {
		this.stockName = stockName;
	}

	public String getMarket() {
		return market;
	}

	public void setMarket(String market) {
		this.market = market;
	}
	
	
}
